package cn.wjssl.domain.activity.service.quota;

import cn.wjssl.domain.activity.model.entity.ActivityCountEntity;
import cn.wjssl.domain.activity.model.entity.ActivityEntity;
import cn.wjssl.domain.activity.model.entity.ActivitySkuEntity;
import cn.wjssl.domain.activity.repository.IActivityRepository;

import javax.annotation.Resource;

/**
 * @Author：lxd
 * @Description 下单的前置基础信息支持
 * @Date：2025/2/19
 */

public class RaffleActivityAccountQuotaSupport {

    @Resource
    private IActivityRepository repository;

    // 通过sku查询活动SKU信息
    public ActivitySkuEntity queryActivitySku(Long sku) {
        return repository.queryActivitySku(sku);
    }

    // 查询活动信息
    public ActivityEntity queryRaffleActivityByActivityId(Long activityId) {
        return repository.queryRaffleActivityByActivityId(activityId);
    }

    // 查询次数信息（用户在活动上可参与的次数）
    public ActivityCountEntity queryRaffleActivityCountByActivityCountId(Long activityCountId) {
        return repository.queryRaffleActivityCountByActivityCountId(activityCountId);
    }

}
